package com.volcreate.guoqing.no1;

import java.util.Scanner;

/**
 * @author zxc
 * @date 2020/9/24
 */
public class Main {
    public static void main(String[] args) {
//        String str = "-32*((2-2)+5)/(-15)";
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        StringBuilder s = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            if ((str.charAt(i) >= '0' && str.charAt(i) <= '9') || str.charAt(i) == '.') {
                s.append(str.charAt(i));
            } else if (str.charAt(i) == '-') {
                if ((i != 0 && str.charAt(i - 1) >= '0' && str.charAt(i - 1) <= '9') || str.charAt(i + 1) == '(') {
                    if (s.length() > 0) {
                        System.out.println(s.toString());
                        s = new StringBuilder();
                    }
                    System.out.println(str.charAt(i));
                } else {
                    s.append(str.charAt(i));
                }
            } else if (str.charAt(i) == '+') {
                if (i == 0)
                    s.append(str.charAt(i));
                else {
                    if (s.length() > 0) {
                        System.out.println(s.toString());
                        s = new StringBuilder();
                    }
                    System.out.println(str.charAt(i));
                }
            } else if (str.charAt(i) == '*' || str.charAt(i) == '/' || str.charAt(i) == '(' || str.charAt(i) == ')') {
                if (s.length() > 0) {
                    System.out.println(s.toString());
                    s = new StringBuilder();
                }
                System.out.println(str.charAt(i));
            }
        }

        scan.close();
    }
}
